package me.nereo.multi_image_selector;

import android.content.Context;


/**
 * Created by Martin on 2017/1/17.
 */

public class MultiImageConfig {

  private MultiImageLoader imageLoader;
  private Context appContext;

  private MultiImageConfig(Builder builder) {
    this.imageLoader = builder.imageLoader;
    this.appContext = builder.context;
  }

  public MultiImageLoader getImageLoader() {
    return imageLoader;
  }

  public Context getAppContext() {
    return appContext;
  }

  public static class Builder {

    private MultiImageLoader imageLoader;
    private Context context;

    public Builder() {}

    public Builder setAppContext(Context context) {
      this.context = context;
      return this;
    }

    public Builder setImageLoader(MultiImageLoader imageLoader) {
      this.imageLoader = imageLoader;
      return this;
    }

    public MultiImageConfig build() {
      return new MultiImageConfig(this);
    }
  }


}
